Skip to content

GH-48295: [Ruby] Add support for reading Int8 array - #48296

Merged
kou merged 1 commit into
apache:mainfrom
kou:ruby-int8-array
Dec 1, 2025
Merged

kou merged 1 commit into
apache:mainfrom
kou:ruby-int8-array

Conversation

@kou

@kou kou commented Dec 1, 2025 •

Copy link
Copy Markdown
Member

Rationale for this change

We already have UInt8 array support. So Int8 array support is easier than others.

What changes are included in this PR?

  • Add ArrowFormat::UInt8Array
  • Add ArrowFormat::Array
    • Add support for parsing validity bitmap

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes.

@github-actions

github-actions Bot commented Dec 1, 2025

Copy link
Copy Markdown

⚠️ GitHub issue #48295 has been automatically assigned in GitHub to PR creator.

@hiroyuki-sato

Copy link
Copy Markdown
Collaborator

+1

test passed on my machine.

LD_LIBRARY_PATH=/tmp/local/lib GI_TYPELIB_PATH=/tmp/local/lib/girepository-1.0 ./test/run.rb
Loaded suite test
Started
/path/to/arrow/ruby/red-arrow-format/lib/arrow-format/file-reader.rb:49: warning: IO::Buffer is experimental and both the Ruby and C interface may change in the future!
Finished in 0.032268718 seconds.
--------------------------------------------------------------------------------------------------------------------------------------------------------------
2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
--------------------------------------------------------------------------------------------------------------------------------------------------------------
61.98 tests/s, 61.98 assertions/s

@hiroyuki-sato
hiroyuki-sato self-requested a review December 1, 2025 12:37
@kou
kou merged commit 6180908 into apache:main Dec 1, 2025
@kou
kou deleted the ruby-int8-array branch December 1, 2025 12:54
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit 6180908.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 4 possible false positives for unstable benchmarks that are known to sometimes produce them.

Mottl pushed a commit to Mottl/arrow that referenced this pull request May 26, 2026
### Rationale for this change

We already have UInt8 array support. So Int8 array support is easier than others.

### What changes are included in this PR?

* Add `ArrowFormat::UInt8Array`
* Add `ArrowFormat::Array`
  * Add support for parsing validity bitmap

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.
* GitHub Issue: apache#48295

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants